﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="zj_view_info.aspx.cs" Inherits="HY.WEB.SA.zj_view_info" %>
<%@ Register Assembly="FredCK.FCKeditorV2" Namespace="FredCK.FCKeditorV2" TagPrefix="FCKeditorV2" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>
   
</head>
<body>
    <form id="form1" runat="server" >
    <div>

    <ext:PageManager ID="PageManager1" runat="server" AutoSizePanelID="Form2" />
    <ext:HiddenField ID="hidsid" runat="server"></ext:HiddenField>
    <ext:HiddenField ID="hidsbh" runat="server"></ext:HiddenField>
    <ext:Label ID="labResult" CssClass="result" EncodeText="false" runat="server">
    </ext:Label>

        <ext:Form ID="Form2" runat="server" AutoScroll="true" BodyPadding="5px" EnableBackgroundColor="true" Title="表单">
            <Rows>
                <ext:FormRow ID="FormRow1" runat="server">
               <Items>
      <ext:SimpleForm ID="SimpleForm1" BodyPadding="5px" runat="server" EnableBackgroundColor="true"
        ShowBorder="True" Title="中介" Width="718px" ShowHeader="True">
        <Items>
            <ext:HiddenField ID="HiddenField1" runat="server">
            </ext:HiddenField>
            <ext:HiddenField ID="hidbh" runat="server">
            </ext:HiddenField>
<ext:Label runat="server" Label="中介名称 " ID="zname"   > </ext:Label>
<ext:Label runat="server"  Label="联系地址" ID="zaddress"  > </ext:Label>

<ext:Label runat="server" Label="服务区域" ID="area"  > </ext:Label>
<ext:Label runat="server"  Label="联系人 " ID="person"   > </ext:Label>
<ext:Label runat="server"  Label="联系电话 " ID="tel"   > </ext:Label>
<ext:Label runat="server"  Label="传真 " ID="fax"  > </ext:Label>
<ext:Label runat="server"  Label="手机 " ID="mtel"  > </ext:Label>
<ext:Label runat="server"  Label="MSN/SKYPE " ID="msn"  > </ext:Label>
<ext:Label runat="server"  Label="QQ" ID="QQ"  > </ext:Label>
<ext:Label runat="server" Label="email" ID="email"  > </ext:Label>
 <ext:Label runat="server"  Label="业务范围" ID="memo"   > </ext:Label>

 <ext:Label runat="server"  Label="业务员" ID="sales"  > </ext:Label>
<ext:Label runat="server" Label="最后更新时间" ID="updtime"  > </ext:Label>

 <ext:Button ID="Button1" runat="server" OnClientClick="javascrip:history.back(-1);" Text="返回上一页">  </ext:Button> 
        </Items>
    </ext:SimpleForm>

       <ext:SimpleForm ID="SimpleForm2" BodyPadding="5px" runat="server" EnableBackgroundColor="true"
        ShowBorder="True" Title="中介信息" ShowHeader="True" AutoHeight="true">
        <Items>
         <ext:Grid ID="Grid1" Title="数据列表"     PageSize="15" ShowBorder="true"  Height="300" AutoHeight="true" AllowPaging="true"
        runat="server" EnableCheckBoxSelect="True"  DataKeyNames="sid" AllowSorting="true"
        OnPageIndexChange="Grid1_PageIndexChange" EnableRowNumber="True" OnSort="Grid1_Sort" AnchorValue="100% -36px">
          <Toolbars>
            <ext:Toolbar ID="Toolbar1" runat="server">
                <Items>
                    <ext:Button ID="btnDelete" Text="删除选中项" Icon="Delete" OnClick="btnDelete_Click" runat="server">
                    </ext:Button>
                          <ext:Button ID="btaddzj" Text="添加信息"  Icon="Add"   runat="server">
                    </ext:Button>
                </Items>
            </ext:Toolbar>
        </Toolbars>
        <Columns>
            <ext:TemplateField Width="60px"  HeaderText="编号" >
                <ItemTemplate>
                    <asp:Label ID="Label1" runat="server" Text='<%# Container.DataItemIndex + 1 %>'></asp:Label>
                </ItemTemplate>
            </ext:TemplateField>


                 <ext:WindowField ColumnID="myWindowField2" Width="60px" WindowID="Window2"
                DataTextField="jbh" HeaderText="信息编号" 
                DataTextFormatString="{0}" DataIFrameUrlFields="sid" SortField="jbh" 
                DataIFrameUrlFormatString="zj_job_view.aspx?sid={0}" DataWindowTitleField="jbh"
                DataWindowTitleFormatString="查看信息 - {0}" />     

               
         <ext:BoundField Width="80px" DataField="zname" DataFormatString="{0}" SortField="zname" HeaderText="中介名称" />
                 

                     <ext:BoundField Width="80px" DataField="ztype" DataFormatString="{0}" SortField="ztype" HeaderText="信息类型" />
                 
                        <ext:BoundField Width="100px" DataField="sdate" DataFormatString="{0:yyyy-MM-dd}" HeaderText="有效日期" />
            <ext:BoundField Width="100px" DataField="edate" DataFormatString="{0:yyyy-MM-dd}" HeaderText="结束日期" />

         <ext:WindowField ColumnID="myWindowField2" Width="60px" WindowID="Window1" HeaderText="功能"
                Icon="TableEdit" ToolTip="编辑" DataTextFormatString="{0}" DataIFrameUrlFields="sid"
                DataIFrameUrlFormatString="zj_job_edit.aspx?sid={0}" DataWindowTitleField="schname"
                DataWindowTitleFormatString="编辑 - {0}" />
          
        </Columns>
    </ext:Grid>

     
        <ext:Grid ID="Grid2" Title="电话记录"      PageSize="15" ShowBorder="true" ShowHeader="false"  AutoWidth="true" 
            AllowPaging="true" AutoScroll="true" runat="server" EnableCheckBoxSelect="True"  AllowSorting="true"   DataKeyNames="sid" Height="300" 
              OnPageIndexChange="Grid2_PageIndexChange" EnableRowNumber="True" OnSort="Grid2_Sort" >
            <Toolbars>
            <ext:Toolbar ID="Toolbar2" runat="server">
                <Items>
                    <ext:Button ID="dtteldel" Text="删除选中项" Icon="Delete" OnClick="btnDelete2_Click" runat="server">
                    </ext:Button>
                   <ext:Button ID="btaddtel" Text="添加电话记录" Icon="Add"  runat="server">
                    </ext:Button>
                </Items>
            </ext:Toolbar>
        </Toolbars>
        <Columns>            
        <ext:BoundField Width="60px" DataField="person" SortField="person" HeaderText="联系人" />
         <ext:WindowField ColumnID="myWindowField2" Width="60px" WindowID="Window2" DataTextField="tel" HeaderText="电话" 
                DataTextFormatString="{0}" DataIFrameUrlFields="sid"
                DataIFrameUrlFormatString="tel_view.aspx?sid={0}" DataWindowTitleField="tel"
                DataWindowTitleFormatString="查看电话记录 - {0}" />
               
          <ext:BoundField Width="100px" DataField="pdtime" DataFormatString="{0:yyyy-M-d HH:mm:ss}" HeaderText="通话时间" SortField="pdtime" />
          <ext:BoundField Width="100px" DataField="pname" SortField="pname" HeaderText="业务员" />
             <ext:TemplateField Width="160px"  HeaderText="电话内容" >
                <ItemTemplate>
                    <asp:Literal ID="Literal2" runat="server" Text=<%#Server.HtmlDecode(Eval("pmemo").ToString())%>></asp:Literal>             
                </ItemTemplate>
             </ext:TemplateField>
             </Columns>
            </ext:Grid>




      </Items>
  
    </ext:SimpleForm>


      </Items>
    </ext:FormRow>
      
               
            </Rows>
        </ext:Form>
           <ext:Window ID="Window1" Title="编辑" Popup="false" EnableIFrame="true" runat="server"
        CloseAction="HidePostBack" EnableConfirmOnClose="true" IFrameUrl="about:blank"
        OnClose="Window1_Close" Target="Top" IsModal="True" Width="750px" Height="459px">
    </ext:Window>
    
        <ext:Window ID="Window2" Title="查看" Popup="false" EnableIFrame="true" runat="server"
        CloseAction="HidePostBack" EnableConfirmOnClose="true" IFrameUrl="about:blank"
        OnClose="Window1_Close" Target="Top" IsModal="True" Width="750px" Height="309px">
    </ext:Window>
    </div>
    </form>
</body>
</html>
